body {
	-webkit-font-smoothing: antialiased;
}

#title-bar {
	-webkit-app-region: drag;
	display: block;
	background-color: #1e1e1e;
	position: absolute;
	height: 38px;
	top: 0;
	left: 0;
	right: 0;
	user-select: none;
	box-sizing: border-box;
}

#title-bar-buttons {
	-webkit-app-region: no-drag;
	position: fixed;
}

.nav-button {
	display: flex;
	width: 38px;
	height: 38px;
	float: left;
	cursor: pointer;
	background-size: 10px 16px;
	background-repeat: no-repeat;
	background-position: center center;
	background-color: inherit;
	text-align: center;
}

.nav-button:hover {
	background-color: #0c0c0c;
}

.nav-button svg {
	margin: auto;
	fill: #fff;
}

/**
 * CSS specific to the WordPress.com Desktop app

   TODO:
     - We've greatly simplified the app and might not need all of these styles any longer.
     - Review and update/refactor as necessary.
 */

/* Disable text selection where it doesn't make sense. Let's be conservative as it's a usability hit. */
header.masterbar,
.layout__secondary {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* Align everything in the center */
.flex {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	width: 100vw;
}

/**
 * Change scrollbar behavior for desktop app
 */

/*
	Some background for this:
	When you navigate from a page that doesn't need a scrollbar, to a page that does need one, everything that's centered or right-aligned "jumps" a little bit to the left to accomodate the presence of a scrollbar. Permanently enabling it even when not needed is an easy fix for that.
	But in the desktop app, it looks really ugly on screens like the login screen, when there's a vertical scrollbar. And it's also very rare that a vertical scrollbar isn't present after logged in. So therefore, revert to stock browser behavior in the desktop app.
*/

html.is-desktop {
	overflow-y: auto;
}

html.is-desktop.detail-page-open {
	overflow-y: hidden;
}

/**
 * Desktop-only screens (failed-to-start.html etc.)
 */

html.desktop-auth body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
		'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
	line-height: 1.5;
	font-size: 15px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #222;
	margin: 0;
}

html.desktop-auth .welcome {
	max-width: 360px;
	width: 100%;
	max-height: 100%;
	margin: 0 auto;
	text-align: center;
}

html.desktop-auth p {
	margin-bottom: 20px;
}

html.desktop-auth .welcome h2,
html.desktop-auth .welcome h3 {
	font-size: 28px;
	font-weight: 700;
	/* stylelint-disable-next-line declaration-property-unit-allowed-list */
	line-height: 1.2em;
	margin: 0 0 10px;
}

html.desktop-auth .welcome ol {
	text-align: left;
}

html.desktop-auth .welcome code {
	font-size: 15px;
	color: #646970;
}

html.desktop-auth .large-icon,
html.desktop-auth .large-icon svg {
	width: 80px;
	height: 80px;
	margin: auto;
}

html.desktop-auth .large-icon svg {
	fill: #dcdcde;
}

html.desktop-auth .large-emoji {
	font-size: 56px;
	padding: 4px;
	margin: auto;
}

html.desktop-auth a {
	color: #0675c4;
}

html.desktop-auth a:hover {
	color: #044b7a;
}

html.desktop-auth img {
	max-width: 100%;
	height: auto;
}

html.desktop-auth img.instructions {
	border-radius: 2px;
}

html.desktop-auth #showme {
	width: 640px;
	margin-left: -160px;
}

html.desktop-auth .button-emphasis {
	background: #0675c4;
	color: #fff;
	cursor: pointer;
	font-weight: 600;
	text-decoration: none;
	font-size: 14px;
	line-height: 21px;
	border-radius: 4px;
	padding: 7px 14px 9px;
	-webkit-appearance: none;
	appearance: none;
}

html.desktop-auth .button-emphasis:hover {
	color: #fff;
	background: #055d9c;
}

/**
 * Offline warning
 */

html.is-desktop .warning {
	position: fixed;
	z-index: 1000;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 12px 16px 12px 48px;
	color: #fff;
	background-color: #f0b849; /* $alert-yellow */
	/* stylelint-disable-next-line function-url-quotes */
	background-image: url( '' );
	background-size: 24px 24px;
	background-position: 12px center;
	background-repeat: no-repeat;
}

html.is-desktop .warning button {
	color: #fff;
	border-bottom: 1px solid #fff;
	cursor: pointer;
}

/**
 * Keep the masterbar sticky even in small sizes
 */

html.is-desktop header#header {
	position: fixed;
}

.form-password-input .form-label {
	text-align: left;
	color: #c8d7e1;
}

/**
 * Disable link dragging when it refers to the localhost
 */

a:not([href*="//"])
{
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
}

/**
 * Pin app reminder
 */

.pin-app {
	max-width: 290px;
	color: #fff;
	background: #005083;
	border-radius: 8px;
	padding: 10px 15px;
	position: absolute;
	bottom: 20px;
	left: 20px;
}

.pin-app h2 {
	font-weight: bold;
	margin-bottom: 1em;
}

.pin-app img {
	display: block;
	margin: 0 auto;
}

.pin-app .pin-app-close {
	display: block;
	width: 24px;
	height: 24px;
	position: absolute;
	right: 10px;
	top: 10px;
	text-decoration: none;
	fill: #fff;
}
